<?php

namespace app\validate;

use app\base\BaseValidate;

/**
 * 验证器-GoodsFreightValidate
 * Class GoodsFreightValidate
 * @package app\validate
 */
class GoodsFreightValidate extends BaseValidate
{

    protected $rule = [
        'id' => 'require|number',
        'name|模板名称' => 'require',
    ];

    public function sceneUpDefault()
    {
        return $this->only(['id', 'default']);
    }
}
